using System;
using System.Collections.Generic;
using System.Text;
using AWZhome.NQ.Core;
using AWZhome.NQ.CommonServices.Visual;

namespace AWZhome.NQ.CommonServices
{
	[NQServiceInterface]
	public interface ITestView3Service : IView
	{
	}

	[NQExportedService]
	internal class TestView3 : ViewServiceBase, ITestView3Service
	{
		private TestViewVisual2 visual;

		public TestView3(ISession sessionService)
			: base(sessionService)
		{
			visual = new TestViewVisual2();
		}

		protected override bool CheckSessionType(ISession session)
		{
			return true;
		}

		public override string DisplayName
		{
			get
			{
				return "Allgemein";
			}
		}

		public override bool IsChanged
		{
			get
			{
				return false;
			}
		}

		public override bool CanBeClosed
		{
			get
			{
				return true;
			}
		}

		public override bool IsLoggable
		{
			get
			{
				return false;
			}
		}

		public override bool IsDocument
		{
			get
			{
				return false;
			}
		}

		public override object DisplayedObject
		{
			get
			{
				return visual;
			}
		}

		public override System.Windows.Media.ImageSource Icon
		{
			get
			{
				return null;
			}
		}

		public override ViewDisplayMode DockingType
		{
			get
			{
				return ViewDisplayMode.InClientArea;
			}
		}
	}
}
